<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
        integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <title>日记</title>
</head>
<body>
    <div class="container border border-2 bg-light rounded border-dark col-6">
    <h1 class=""><%= htdiary.date %></h1>
    
    <div class="col ml-0 pl-0">
        <div class=" col border border-2 border-left-0 border-right-0">
            <p class="col-6 pl-0 mt-2 mb-1"><%= htdiary.content%></p>
        </div>
        <div class="col border border-2 border-left-0 border-right-0 border-top-0">
            <p class="col-6 pl-0 mt-2 mb-1"><%= htdiary.explain%></p>
        </div>
    </div>
    <div class="mt-2">
        <ul class="list-group col">
            <div class="col pl-0">
                <h4>评论：</h4>
            </div>
            <li class="list-group-item">lt: <%= htdiary.ltcomment%></li>
            <li class="list-group-item">yt: <%= htdiary.ytcomment%></li>
            <li class="list-group-item">pt: <%= htdiary.ptcomment%></li>
            <li class="list-group-item">zt: <%= htdiary.ztcomment%></li>
            <li class="list-group-item">lsy: <%= htdiary.lsycomment%></li>
        </ul>
    </div>
    <div class="row">
        <a href="/htDiary/<%=htdiary.id%>/edit" class="col list-group-item list-group-item-action list-group-item-success mt-0 text-center text-white rounded">编辑</a>
        <form action="/htDiary/<%=htdiary.id%>?_method=DELETE" method="POST">
        <button class="btn btn-danger btn-lg text-white btn-block" >删除</button>
        </form>
        <a href="/htDiary" class=" col list-group-item list-group-item-action list-group-item-success mt-0 text-center text-white rounded">返回首页</a>
    </div>
    </div>
</body>
</html>